let str = 'my-first-name'
const patt = /-\w/g
str = str.replace(patt, function(word) {
    return word.substring(1, 2).toUpperCase()
})
console.log(str)
